a580428f3816b2603069236cde8bd3dac5e301a6,plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/hyperlinking/OpenDeclarationAction.java,OpenDeclarationAction,doOpen,#URI#,53

Before Change


		IFile file = getContainingResourceSetFile(uri);
		IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
		try {
			IEditorPart openEditor = IDE.openEditor(page, file);
			if (openEditor instanceof XtextEditor) {
				final XtextEditor edit = (XtextEditor) openEditor;
				if (uri.fragment()!=null) {

After Change


		IEditorPart openEditor = null;
		try {
			if (file != null) {
				openEditor = IDE.openEditor(page, file);
			} else if (uri.isArchive()) {
				// TODO don't fall back to java.io
				IEditorInput input = new XtextReadonlyEditorInput(new ReadonlyArchiveStorage(uri));